PEGetErrorCode

Use PEGetErrorCode to retrieve a number that indicates the status of the most recent Crystal Report Engine function called. When a call to another function fails, this call gets the error code that was generated so you can take some action based on that error code. PEGetErrorCode must be called immediately after the call to the function which indicated an error.

C Syntax
short CRPE_API PEGetErrorCode (
        short printJob );
Parameter

printJob

Specifies the print job from which you want to retrieve an error code. If the most recent function was called while no print job was open, use 0 for this parameter.

Returns
VB Syntax

VB Sample Code for handling errors

Declare Function PEGetErrorCode Lib "crpe32.dll" (ByVal printJob As 
Integer) _
        As Integer
Delphi Syntax

Delphi code for error handling

function PEGetErrorCode (
    printJob: Word
    ): Smallint stdcall;
dBASE for Windows Syntax

EXTERN CWORD PEGetErrorCode (CWORD) CRPE.DLL



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com